{include file='header.html'}
        <link type="text/css" href="../../page/css/reset.css" rev="stylesheet" rel="stylesheet">
        <link type="text/css" href="../../page/css/kaoqin.css" rev="stylesheet" rel="stylesheet">

            <div id="content">
                <i class="con_l">&nbsp;</i>
                <i class="con_r">&nbsp;</i>
                <div class="main">
                    <!--我的年假begin-->
                    <div class="blank"></div>
                    <div class="div_date">
                        <i class="i_l">&nbsp;</i>
                        <span class="sp_c">员工：{$the_user_info.name}[{$the_user_info.code}]&nbsp;{$nowtime}考勤明细</span>
                        <i class="i_r">&nbsp;</i>
                        <div class="clear"></div>
                    </div>
                    <br/>
                    <table class="p p3_day" cellpadding="0" cellspacing="0" border="0">
                        <tr class="fir">
                            <td class="i0">日期</td>
                            <td class="i0">上班时间</td>
                            <td class="i0">考勤状态</td>
                            {if $is_self_see }<td class="i0">工时</td>{/if}
                            {if $userdata}<td class="i0">加班工时</td>{/if}
                            <td class="i0">备注</td>
                        </tr>
                        {foreach from=$result key=theday item=v}
                        <tr>
                            <td class="i0">{$v.month}月{$v.day}日 周{$v.week}</td>
                            <td class="i0">
                            {if $v.status.0.name eq '正常' and !($v.week eq '六' or $v.week eq '日')}
                            {$v.start}-{$v.end}
                            {else}
                                {if $v.start or $v.end}
                                    {if  $v.sp_work_day or !($v.week eq '六' or $v.week eq '日') or $the_user_info.user_id != $smarty.session.user_id}
                                         <span{if $v.start_work gte 931} class="chi"{/if}>{$v.start}</span>
                                        {if $v.start and $v.end}-{/if}
                                        {if $v.end}<span {if $v.end_work <= 1800} class="chi"{/if}>{$v.end}</span>{/if}
                                    {/if}
                                {/if}
                            {/if}
                            &nbsp;
                            <td class="i0">
                            {if $v.status neq null}
                                {if !($v.week eq '六' or $v.week eq '日') or $the_user_info.user_id != $smarty.session.user_id or $v.sp_work_day}
                                    {foreach from=$v.status key=ty item=st}
                                        {if !($v.week eq '六' or $v.week eq '日') or $st neq ''}
                                            {if $st.name eq '正常'}
                                            <span class="img1">&nbsp;</span>
                                            {else}
                                            <span{if $st.id neq 999} class="chi"{/if}>{$st.name}</span> &nbsp;&nbsp;{if $st.id neq 999 && !$userdata}<a href="/delay/?type={$st.id}&date={$smarty.now|date_format:'%Y'}-{$v.month}-{$v.day}">[提交原因]</a>{/if}
                                            {/if}
                                        {/if}
                                        {$st.status}{if $smarty.foreach.name.total eq $smarty.foreach.name.index}<br>{/if}
                                    {/foreach}
                                {/if}
                            {else}
                            &nbsp;
                            {/if}
                            </td>
                            {if $is_self_see }<td class="i0">{$v.worktime}&nbsp;</td>{/if}
                            {if $userdata}<td class="i0">&nbsp;{$v.workendtime}</td>{/if}
                            <td class="i0">
                            {if $v.reason neq null}
                                {if $v.reason}
                                {foreach from=$v.reason key=rsn item=rs}
                                {$rs}<br>
                                {/foreach}
                                {/if}
                            {else}
                                &nbsp;
                            {/if}

                            </td>
                        </tr>
                        {/foreach}
                    </table>
                </div>
            </div>
        </div>

    </body>
</html>
